package admin.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;


@AllArgsConstructor
@Getter
public enum ResponseEnum {
    // 可以根据自己的实际需要增加状态码
    SUCCESS(0, "操作成功"),
    SERVER_INNER_ERR(500,"内部异常"),
    ILLEGAL_ARGUMENT_MSG(400, "参数非法"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限")

    ;

    private final int code;
    private final String msg;

}
